package com.cloud.school.bus.teacherhelper.protocol.accountrelevant;

import java.util.HashMap;

import android.content.Context;

import com.cloud.school.bus.teacherhelper.base.authcode.AuthCode;
import com.cloud.school.bus.teacherhelper.protocol.ProtocolDef;
import com.cloud.school.bus.teacherhelper.protocol.baserequest.BasePostHttpRequest;
import com.cloud.school.bus.teacherhelper.protocol.login.GetTsigninRequest;
/**
 * 修改登陆密码
 * @author jiahongfei
 *
 */
public class ModifyLoginPasswordRequest extends BasePostHttpRequest {

	public ModifyLoginPasswordRequest(Context context, String oldPassword, String newPassword) {
		super(context);
		
		HashMap<String, String> requestMap = new HashMap<String, String>();
		String tempOld = AuthCode.authcodeEncode(oldPassword, GetTsigninRequest.TSIGNIN_KEY);
		requestMap.put("old", tempOld);
		String tempNew = AuthCode.authcodeEncode(newPassword, GetTsigninRequest.TSIGNIN_KEY);
		requestMap.put("new", tempNew);
		setRequestParam(ProtocolDef.METHOD_Tpassword, requestMap);
	}

}
